package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class SystemMessageExtraContextBean implements Serializable ,IJsonParser{

	/**
	 * 
	 * 
	 */
	private static final long serialVersionUID = 8528610631262972252L;
	private String title;
	private NewActorBean from_actor;
	private String message_id ;
	private String context;
	private String send_time;
	private TopicAndPostBean post ;
	private TopicAndPostBean topic ;
	private OfficialMessageBean official_message ;
	private int topic_id ;
	public TopicAndPostBean getPost() {
		return post;
	}
	public TopicAndPostBean getTopic() {
		return topic;
	}
	public OfficialMessageBean getOfficial_message() {
		return official_message;
	}
	public int getTopic_id() {
		return topic_id;
	}
	public String getMessage_id() {
		return message_id;
	}
	public String getContext() {
		return context;
	}
	public String getSend_time() {
		return send_time;
	}
	public String getTitle() {
		return title;
	}
	public NewActorBean getFrom_actor() {
		return from_actor;
	}
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, SystemMessageExtraContextBean.class);
		}
		return null;
	}

}
